package me.wangshier.leetcode.easy;

/**
 * 10. 小F的永久代币卡回本计划
 *
 * @Author: tongqianwen
 * @Date: 2025/3/5
 */
public class RecoveCostPlan {
    public static int solution(int a, int b) {
        int days = a / b;  // 计算整除的天数
        if (a % b != 0) {  // 如果有余数，需要多加一天
            days += 1;
        }
        return days;
    }

    public static void main(String[] args) {
        System.out.println(solution(10, 1) == 10);
        System.out.println(solution(10, 2) == 5);
        System.out.println(solution(10, 3) == 4);
    }
}
